package com.mamba.microservice.mybatis.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Copyright ©2020 mamba All Rights Reserved
 * 请添加类/接口的说明：
 *
 * @Package: com.mamba.microservice.mysql.autoconfigure
 * @author: fangjin
 * @date: 2020年05月05日 21时29分
 */
@ConfigurationProperties(prefix = MybatisProperties.MMS_MYBATIS)
public class MybatisProperties {
    static final String MMS_MYBATIS = "mms.mybatis";
    /**
     * mybatis-config的路径
     */
    private String configLocation;
    /**
     * mapper配置文件的路径
     */
    private String[] mapperLocations;
    /**
     * 设置别名
     */
    private String typeAliasesPackage;
    /**
     * mapper bean的路径
     */
    private String baseMapperPackage;

    public String getBaseMapperPackage() {
        return baseMapperPackage;
    }

    public void setBaseMapperPackage(String baseMapperPackage) {
        this.baseMapperPackage = baseMapperPackage;
    }

    public static String getMmsMybatis() {
        return MMS_MYBATIS;
    }

    public String getConfigLocation() {
        return configLocation;
    }

    public void setConfigLocation(String configLocation) {
        this.configLocation = configLocation;
    }

    public String[] getMapperLocations() {
        return mapperLocations;
    }

    public void setMapperLocations(String[] mapperLocations) {
        this.mapperLocations = mapperLocations;
    }

    public String getTypeAliasesPackage() {
        return typeAliasesPackage;
    }

    public void setTypeAliasesPackage(String typeAliasesPackage) {
        this.typeAliasesPackage = typeAliasesPackage;
    }
}
